/*! \file dllmain.cpp
 *	\brief Defines the entry point for the DLL application.
 *
 *	created:	2009/11/12
 *	created:	12:11:2009   16:28
 *	filename: 	c:\src\main\libs\gd_dx9\dllmain.cpp
 *	file path:	c:\src\main\libs\gd_dx9
 *	file base:	dllmain
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */
#include "stdafx.h"

#include <core/assert.h>
#include <core/defs.h>
#include <core/exception.h>
#include <core/types.h>
#include <gd/gd.h>

#include "defs.h"
#include "Driver.h"

namespace tt{
namespace gd_dx9{

GD_DX9_API UInt DriversCount()
{
	return 1;
}

GD_DX9_API SharedPtr<gd::Driver> CreateDriver(UInt driverIndex)
{
	TT_PARAMETER_USED(driverIndex);
	TT_ASSERT(driverIndex < 1);
	return SharedPtr<gd::Driver>(new Driver);
}

} //namespace gd_dx9
} //namespace tt


BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	hModule;
	ul_reason_for_call;
	lpReserved;

	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

